// components/formItem/formItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    editing: {
      type: Boolean,
      value: false
    },
    key: {
      type: String,
      value: ''
    },
    label: {
      type: String,
      value: ''
    },
    value: {
      type: String,
      value: ""
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    inputTxt(e) {
      let obj = {}
      obj[this.properties.key] = e.detail.value
      this.triggerEvent('onEdit', obj);
    }
  }
})
